package cn.iocoder.yudao.module.erp.controller.admin.purchaseinorder.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.module.erp.dal.dataobject.suppliersendorderitem.SupplierSendOrderItemDO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - ERP采购入库审批单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PurchaseInOrderSupplierSaveReqVO extends PageParam {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27185")
    private String id;

    @Schema(description = "随货同行单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10242")
    @NotEmpty(message = "随货同行单编号不能为空")
    private String outOrderId;

    @Schema(description = "一级库整合单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31106")
    @NotEmpty(message = "一级库整合单编号不能为空")
    private String integrateId;

    @Schema(description = "采购单编号-提交供应商采购单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18081")
    @NotEmpty(message = "采购单编号-提交供应商采购单编号不能为空")
    private String purchaseOrderId;

    @Schema(description = "一级库入库单编号", example = "17046")
    private String priInId;

    @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "19288")
    @NotNull(message = "供应商编号不能为空")
    private Long supplierId;

    @Schema(description = "审批意见")
    private String opinion;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "流程实例的编号", example = "7308")
    private String processInstanceId;

    @Schema(description = "随货同行单详情", example = "7308")
    private List<SupplierSendOrderItemDO> supplierSendOrderItems;

}